/*
 * Copyright (c) 2025. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.portalcenter.application.action.dept.query.list.flow;

import cn.hallele.infrastructure.metadata.io.Page;
import cn.hallele.ms.portalcenter.application.bo.DeptBO;
import cn.hallele.ms.portalcenter.application.bo.DeptQueryBO;
import cn.hallele.ms.portalcenter.application.das.DeptBDDas;
import cn.hallele.ms.starter.web.framework.node.ServiceFlow;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * hallele_ms_portalcenter
 *
 * @author anle5
 * @since 2025/1/1 16:27
 */
@Slf4j
@Service
public class QueryDeptListFlow extends ServiceFlow {
    @Autowired
    private DeptBDDas deptBDDas;

    @Override
    public void process() throws Exception {
        DeptQueryBO requestData = this.getRequestData();
        Page<DeptBO> deptList = deptBDDas.findDeptList(requestData);
        this.setResult(deptList);
    }
}
